package com.chaopei.duotai;

/**
 * @Author Corday 天涯
 * @Date 2022/3/7 11:01
 */
public class Cool {
    private  String username;
    private  String password;
    public  Cool(){}
   //普通类中不能有抽象方法
    //    abstract  void speak();

    public Cool(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    String  speak(){
        return "username:"+this.username+" pass:"+this.password;
    }
}
